import request from '@/utils/request'

// 新增公告
export function addNotice(data = {}) {
  return request.post('/content/notice/add', data)
}

// 删除公告
export function deleteNotice(data = {}) {
  return request.post('/content/notice/delete', data)
}

// 编辑公告
export function editNotice(data = {}) {
  return request.post('/content/notice/edit', data)
}

// 公告列表
export function getNoticeList(data = {}) {
  return request.post('/content/notice/page', data)
}

// 游记列表
export function getTravelList(data = {}) {
  return request.post('/travel/page', data)
}

// 游记详情
export function getTravelDetail(data = {}) {
  return request.post(`/travel/detail/${data.travelId}`, data)
}

// 删除游记
export function deleteTravel(data = {}) {
  return request.post(`/travel/delete/${data.travelId}`, data)
}
